package com.knowledge.business.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.knowledge.business.domain.KnowledgeDocumentSegment;
import org.apache.ibatis.annotations.Mapper;

/**
 * 文档分段Mapper接口
 *
 * @author zhaoyk
 * @date 2025-09-14
 */
@Mapper
public interface KnowledgeDocumentSegmentMapper extends BaseMapper<KnowledgeDocumentSegment> {
    /**
     * 查询文档分段
     *
     * @param id 文档分段主键
     * @return 文档分段
     */
    public KnowledgeDocumentSegment selectKnowledgeDocumentSegmentBySegmentId(String id);

    /**
     * 查询文档分段列表
     *
     * @param knowledgeDocumentSegment 文档分段
     * @return 文档分段集合
     */
    public List<KnowledgeDocumentSegment> selectKnowledgeDocumentSegmentList(KnowledgeDocumentSegment knowledgeDocumentSegment);

    /**
     * 新增文档分段
     *
     * @param knowledgeDocumentSegment 文档分段
     * @return 结果
     */
    public int insertKnowledgeDocumentSegment(KnowledgeDocumentSegment knowledgeDocumentSegment);

    /**
     * 修改文档分段
     *
     * @param knowledgeDocumentSegment 文档分段
     * @return 结果
     */
    public int updateKnowledgeDocumentSegment(KnowledgeDocumentSegment knowledgeDocumentSegment);

    /**
     * 删除文档分段
     *
     * @param id 文档分段主键
     * @return 结果
     */
    public int deleteKnowledgeDocumentSegmentById(String id);

    /**
     * 批量删除文档分段
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteKnowledgeDocumentSegmentByIds(String[] ids);
}
